package cc.admin.modules.quartz.job;


import cc.admin.modules.message.websocket.WebSocket;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import javax.annotation.Resource;

@Slf4j
public class AssistantWebSocket extends AbstractJob {
    @Resource
    WebSocket webSocket;
    @Override
    public void doExecute(JobExecutionContext context) throws JobExecutionException {
        webSocket.sendOneMessage("assistant","heartbeat");
    }
}
